
# include
include_directories(.
    ../subprojects/spice-common
)

#set(SRC_LIST 
#./spice-client-gtk-module.c
#)

aux_source_directory(. SRC_LIST)
#aux_source_directory(. SRC_LIST)
#aux_source_directory(src SRC_LIST)
#aux_source_directory(tools SRC_LIST)
#aux_source_directory(tools/vcd-src SRC_LIST)
#aux_source_directory(tools/vcd-tests SRC_LIST)
#aux_source_directory(tools/vcd-conf SRC_LIST)
#aux_source_directory(tools/vcd-setting-window SRC_LIST)
#aux_source_directory(tools/vcd-setting-window/setting-close SRC_LIST)
#aux_source_directory(tools/vcd-setting-window/setting-diagnosis SRC_LIST)
#aux_source_directory(tools/vcd-setting-window/setting-main SRC_LIST)
#aux_source_directory(tools/vcd-setting-window/setting-network SRC_LIST)
#aux_source_directory(tools/trace-signals SRC_LIST)

#TARGET_LINK_LIBRARIES(src)

set(lib_name gtk_lib_test)

# target SHARED must be upper case
add_library(${lib_name} SHARED ${SRC_LIST})
target_link_libraries(${lib_name} 
-lspice-client-gtk-3.0
-lspice-client-glib-2.0
-lgthread-2.0
-ljpeg
-lz
-lpixman-1
-lssl
-lgtk-3
-lgdk-3
-lpangocairo-1.0
-lpango-1.0
-lcairo-gobject
-lcairo
-lgdk_pixbuf-2.0
-lepoxy
-lgstaudio-1.0
-lgstapp-1.0
-lgstvideo-1.0
-lgstbase-1.0
-lgstreamer-1.0
-lXrandr
-lXrender
-lX11
-lcurl
-lcrypto
-lpthread
-ljson-glib-1.0
-lgio-2.0
-lgobject-2.0
-lglib-2.0
-lm
-lX11-xcb
-lsndfile
)

#set_target_properties(${TARGET} PROPERTIES COMPILE_FLAGS "-Wno-write-strings -Wno-narrowing")
# link
#target_link_libraries(${TARGET} X11 Xext ${GSTREAMER_0_10_LIBRARIES})
#qt5_use_modules(${TARGET} Widgets Network X11Extras)

# install
#install(TARGETS ${TARGET} DESTINATION bin)
